package cn.tedu.orderservice.feign;

import cn.tedu.charging.common.pojo.dto.ChargingProcessDTO;
import cn.tedu.charging.common.pojo.vo.ChargingProcessVO;
import cn.tedu.charging.common.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.math.BigDecimal;

@FeignClient("costservice")
public interface CostClient {

    @PostMapping("/v1/cost/calcute")
    public JsonResult<ChargingProcessVO> getFee(ChargingProcessDTO chargingProcessDTO);

    @GetMapping("/v1/cost/info/{orderNo}")
    public JsonResult<ChargingProcessVO> getCostByOrderNo(@PathVariable("orderNo") String orderNo);
}
